#define _CRT_SECURE_NO_WARNINGS 1


#include<string>
#include<iostream>

using namespace std;

int main()
{
	string s;
	cin >> s;
	auto it = s.rbegin();
	while (it != s.rend())
	{
		cout << *it;
		it++;
	}
	cout << endl;

	return 0;
}